/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-12-01 13:52:54
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-08-21 10:35:00
 */
const parentRouter = [
  {
    label: '供应商管理',
    path: ''
  }
]
const routes = [
  {
    path: '/supplier/fieldAssessment',
    name: 'fieldAssessment',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '实地考核',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/fieldAssessment.vue')
  },
  {
    path: '/supplier/fieldAssessment/add',
    name: 'FieldAssessmentAdd',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '实地考核',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/fieldAssessmentAdd.vue')
  },
  {
    path: '/supplier/record',
    name: 'record',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商档案',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/record.vue')
  },
  {
    path: '/supplier/record/add',
    name: 'addRecord',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '新增合格供应商',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/components/recordInfo.vue')
  },
  {
    path: '/supplier/record/edit',
    name: 'editRecord',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '编辑合格供应商',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/components/recordInfo.vue')
  },
  {
    path: '/recordDetail',
    name: 'recordDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/components/recordDetail.vue')
  },
  {
    path: '/supplier/rectifyInform',
    name: 'rectifyInform',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '整改通知',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInform.vue')
  },
  {
    path: '/supplier/rectifyInform/add',
    name: 'rectifyInformAdd',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '新增整改通知',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInformAdd.vue')
  },
  {
    path: '/supplier/rectifyInform/edit',
    name: 'rectifyInformEdit',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '编辑整改通知',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInformAdd.vue')
  },
  {
    path: '/supplier/rectifyInform/detail',
    name: 'rectifyInformDetail',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '整改通知详情',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInformDetail.vue')
  },
  {
    path: '/supplier/rectifyInform/schemeAffirm',
    name: 'rectifyInformSchemeAffirm',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '整改方案确认',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInformSchemeAffirm.vue')
  },
  {
    path: '/supplier/rectifyInform/resultAffirm',
    name: 'rectifyInformResultAffirm',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '整改结果确认',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectifyInformResultAffirm.vue')
  },
  {
    path: '/supplier/rectifyInform/supplierList',
    name: 'supplierList',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商主数据',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/supplierList.vue')
  },
  {
    path: '/supplier/rectifyInform/rectificationPage',
    name: 'rectificationPage',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商整改通知',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/rectificationPage.vue')
  },
  {
    path: '/supplier/rectifyInform/addRectification',
    name: 'addRectification',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商整改通知-新建',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/addRectification.vue')
  },
  {
    path: '/supplier/rectifyInform/schemeReview',
    name: 'schemeReview',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '供应商整改通知-整改方案审核',
      keepAlive: true,
      parentTitle: [...parentRouter]
    },
    component: () => import('@/modules/supplier/views/schemeReview.vue')
  }
]
export default routes
